numpy array heaviside float values to 0 or 1

124

numpy array heaviside float values to 0 or 1 -

                      0   if x1 < 0
heaviside(x1, x2) =  x2   if x1 == 0
                      1   if x1 > 0

Comments

Submit
0 Comments